export default function addTemplate(template, lang = {}) {
    template['batch_attend_list'] = {
        "moduletype": "table",
        "pagination": false,
        "code": "batch_attend_list",
        "name": "批量补考勤",
        "oid": "100DZ710000000001HMC",
        items: [
            {
                "hyperlinkflag": false,
                "islock": false,
                "istotal": false,
                "width": "120px",
                "attrcode": 'fillDate',
                "color": "#6E6E77",
                "containlower": false,
                "datatype": "1",
                "disabled": true,
                "editAfterFlag": false,
                "fieldDisplayed": "refcode",
                "fieldValued": "refpk",
                "isDataPowerEnable": true,
                "isnotmeta": false,
                "isResLabel": false,
                "isrevise": false,
                "isShowUnit": false,
                "itemtype": "datepicker",
                "label": lang['6040-000051'],
                "maxlength": "40",
                "onlyLeafCanSelect": false,
                "position": "1",
                "required": false,
                "scale": "0",
                "visible": true
            },
            {
                "hyperlinkflag": false,
                "islock": false,
                "istotal": false,
                "width": "120px",
                "attrcode": 'fillTime',
                "color": "#6E6E77",
                "containlower": false,
                "datatype": "1",
                "disabled": true,
                "editAfterFlag": false,
                "fieldDisplayed": "refcode",
                "fieldValued": "refpk",
                "isDataPowerEnable": true,
                "isnotmeta": false,
                "isResLabel": false,
                "isrevise": false,
                "isShowUnit": false,
                "itemtype": "timepicker",
                "label": lang['6040-000052'],
                "maxlength": "40",
                "onlyLeafCanSelect": false,
                "position": "1",
                "required": false,
                "scale": "0",
                "visible": true,
                "showSecond": false,
                "format": "hh:mm"
            },
            {
                "hyperlinkflag": false,
                "islock": false,
                "istotal": false,
                "width": "120px",
                "attrcode": 'signState',
                "color": "#6E6E77",
                "containlower": false,
                "datatype": "1",
                "disabled": true,
                "editAfterFlag": false,
                "fieldDisplayed": "refcode",
                "fieldValued": "refpk",
                "isDataPowerEnable": true,
                "isnotmeta": false,
                "isResLabel": false,
                "isrevise": false,
                "isShowUnit": false,
                "itemtype": "refer",
                "label": lang['6040-000053'],
                "maxlength": "40",
                "onlyLeafCanSelect": false,
                "position": "1",
                "required": false,
                "scale": "0",
                "visible": true
            },
            {
                "hyperlinkflag": false,
                "islock": false,
                "istotal": false,
                "width": "120px",
                "attrcode": 'fillStatus',
                "color": "#6E6E77",
                "containlower": false,
                "datatype": "1",
                "disabled": true,
                "editAfterFlag": false,
                "fieldDisplayed": "refcode",
                "fieldValued": "refpk",
                "isDataPowerEnable": true,
                "isnotmeta": false,
                "isResLabel": false,
                "isrevise": false,
                "isShowUnit": false,
                "itemtype": "refer",
                "label": lang['6040-000054'],
                "maxlength": "40",
                "onlyLeafCanSelect": false,
                "position": "1",
                "required": false,
                "scale": "0",
                "visible": true
            }
        ]
    };
    template['batch_attend_edit_list'] = {
        "moduletype": "table",
        "pagination": false,
        "code": "batch_attend_edit_list",
        "name": "批量补考勤",
        "oid": "100DZ710000000002HMC",
        items: [
            {
                "hyperlinkflag": false,
                "islock": false,
                "istotal": false,
                "width": "120px",
                "attrcode": 'fillDate',
                "color": "#6E6E77",
                "containlower": false,
                "datatype": "1",
                "disabled": true,
                "editAfterFlag": false,
                "fieldDisplayed": "refcode",
                "fieldValued": "refpk",
                "isDataPowerEnable": true,
                "isnotmeta": false,
                "isResLabel": false,
                "isrevise": false,
                "isShowUnit": false,
                "itemtype": "datepicker",
                "label": lang['6040-000051'],
                "maxlength": "40",
                "onlyLeafCanSelect": false,
                "position": "1",
                "required": true,
                "scale": "0",
                "visible": true
            },
            {
                "hyperlinkflag": false,
                "islock": false,
                "istotal": false,
                "width": "120px",
                "attrcode": 'fillTime',
                "color": "#6E6E77",
                "containlower": false,
                "datatype": "1",
                "disabled": false,
                "editAfterFlag": false,
                "fieldDisplayed": "refcode",
                "fieldValued": "refpk",
                "isDataPowerEnable": true,
                "isnotmeta": false,
                "isResLabel": false,
                "isrevise": false,
                "isShowUnit": false,
                "itemtype": "timepicker",
                "label": lang['6040-000052'],
                "maxlength": "40",
                "onlyLeafCanSelect": false,
                "position": "1",
                "required": true,
                "scale": "0",
                "visible": true,
                "showSecond": false,
                "format": "HH:mm"
            },
            {
                "hyperlinkflag": false,
                "islock": false,
                "istotal": false,
                "width": "120px",
                "attrcode": 'signState',
                "color": "#6E6E77",
                "containlower": false,
                "datatype": "1",
                "disabled": true,
                "editAfterFlag": false,
                "fieldDisplayed": "refcode",
                "fieldValued": "refpk",
                "isDataPowerEnable": true,
                "isnotmeta": false,
                "isResLabel": false,
                "isrevise": false,
                "isShowUnit": false,
                "itemtype": "refer",
                "label": lang['6040-000053'],
                "maxlength": "40",
                "onlyLeafCanSelect": false,
                "position": "1",
                "required": false,
                "scale": "0",
                "visible": true
            },
            {
                "hyperlinkflag": false,
                "islock": false,
                "istotal": false,
                "width": "520px",
                "attrcode": 'fill_reason',
                "color": "#6E6E77",
                "containlower": false,
                "datatype": "1",
                "disabled": false,
                "editAfterFlag": false,
                "fieldDisplayed": "refname",
                "fieldValued": "refpk",
                "isDataPowerEnable": true,
                "isnotmeta": false,
                "isResLabel": false,
                "isrevise": false,
                "isShowUnit": false,
                "itemtype": "input",
                "label": lang['6040-000055'],
                "maxlength": "200",
                "onlyLeafCanSelect": false,
                "position": "1",
                "required": false,
                "scale": "0",
                "visible": true
            }
        ]
    }
}